"""manage URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.urls import path, re_path
from app01 import views

urlpatterns = [
    path('classes/', views.classes, name='classes'),
    path('add_cls/', views.add_cls),
    re_path('edit_cls/(\d+)/', views.edit_cls),
    re_path('del_cls/(\d+)/', views.del_cls),
    path('students/', views.students, name='students'),
    path('add_stu/', views.add_stu),
    re_path('edit_stu/(\d+)/', views.edit_stu),
    re_path('del_stu/(\d+)/', views.del_stu),
    path('teachers/', views.teachers, name='teachers'),
    path('add_tea/', views.add_tea),
    re_path('edit_tea/(\d+)/', views.edit_tea),
    re_path('del_tea/(\d+)/', views.del_tea),
    path('login/', views.login),
    path('logout/', views.logout),
    path('user/', views.user),
    path('ajax_login/', views.ajax_login),
]
